package com.project.ncasoconfig;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

@Component
@RefreshScope
public class NacosConfiglProperties {

    public String getUseLocalCache() {
        return useLocalCache;
    }

    public String getDatasourceType() {
        return datasourceType;
    }

    public String getDatasourcecUrl() {
        return datasourcecUrl;
    }

    @Value("${use.local.cache}")
    private String useLocalCache;

    @Value("${spring.datasource.type}")
    private String datasourceType;

    @Value("${spring.datasource.url}")
    private String datasourcecUrl;

}
